package ca.etsmtl.log430.lab3;


public class Project implements Comparable<Project>{
	
	public String lineOfText;

	public Project(String lineOfText){
		this.lineOfText = lineOfText;
	}
	
	@Override
	public int compareTo(Project o) {

		String[] partsThis = lineOfText.split(" ");
		String[] partsOther = o.lineOfText.split(" ");
		
		if(partsThis[1].compareTo(partsOther[1]) > 0)
			return 1;
		else
			return -1;
		
	}
	

}
